package stream;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * 使用字节流 写的操作Demo
 */
public class Demo2 {

    public static void main(String[] args) {
        try(OutputStream outputStream = new FileOutputStream("./text1.txt")){
            byte[] buffer = new byte[]{97, 98, 99, 100, 101, 102};
            outputStream.write(buffer);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
